package com.yxb.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yxb.common.annotation.Excel;
import com.yxb.common.core.domain.BaseEntity;

/**
 * 系统消息通知对象 notification
 * 
 * @author ruoyi
 * @date 2025-03-04
 */
public class Notification extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 消息id */
    private Long msgId;

    /** 发布者id */
    @Excel(name = "发布者id")
    private Long senderId;

    /** 教员id */
    @Excel(name = "教员id")
    private Long teacherId;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sendTime;

    public void setMsgId(Long msgId) 
    {
        this.msgId = msgId;
    }

    public Long getMsgId() 
    {
        return msgId;
    }
    public void setSenderId(Long senderId) 
    {
        this.senderId = senderId;
    }

    public Long getSenderId() 
    {
        return senderId;
    }
    public void setTeacherId(Long teacherId) 
    {
        this.teacherId = teacherId;
    }

    public Long getTeacherId() 
    {
        return teacherId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setSendTime(Date sendTime) 
    {
        this.sendTime = sendTime;
    }

    public Date getSendTime() 
    {
        return sendTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("msgId", getMsgId())
            .append("senderId", getSenderId())
            .append("teacherId", getTeacherId())
            .append("content", getContent())
            .append("sendTime", getSendTime())
            .toString();
    }
}
